package com.example.dubbo.api.provider.business.impl;

import com.example.dubbo.business.HelloService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Slf4j
@Service("helloService")
public class HelloServiceImpl implements HelloService {

    @Value("${dubbo.application.name}")
    private String remoteServiceName;

    @Override
    public String hello(String userName) {
        log.info("HelloServiceImpl:hello,param:userName" + userName);
        return "Hello," + userName + "<<<<from remoteServiceName:" + remoteServiceName;
    }
}
